{layout name='./base/base_back_1'}
		<link rel="stylesheet" type="text/css" href="/front/css/common.css"/>
		<link rel="stylesheet" type="text/css" href="/front/css/header.css"/>
		<link rel="stylesheet" type="text/css" href="/front/css/footer.css"/>
		<link rel="stylesheet" type="text/css" href="/front/css/weifeng.css"/>
		<script src="/front/js/jquery.js"></script>
		<script src="/front/js/index.js"></script>		
		<!--支付选择开始-->
		<div id="paychose-wrap">
			<div class="paychose"> 
				<div class="position-flow">
					<span style="font-size: 16px;">您的位置：</span>
					<span class="present-place">首页 > 交换房车选择 > 房车详情 > 填写订单</span>
					<span> > 在线支付 > 预订成功 </span>
				</div>
				<div class="paychoseorderinfo">
					<h2>订单已提交，请尽快完成付款</h2>
					<p>请在<span id="countDown"><?php echo strtotime($post_order_info['created_at'])+3600-time()?></span>内完成支付，逾时订单将自动取消。<span class="fr" id="paychoseorderinfobtn">订单详情 v</span></p>
					<input type="hidden" name="id" value="{$post_order_info.number}" />
					<input type="hidden" name="wid" value="{$wid}" />
					<p>订单编号：<span>{$post_order_info.number}</span></p>
					<div>
						<p>入住时间：<span>{$post_order_info.take_car_date}</span>&nbsp;&nbsp;&nbsp;&nbsp;离开时间：<span>{$post_order_info.leave_car_date}</span></p>
						<p>房车名称：<span>{php} echo model('CaravanInfos')->where('id',$post_order_info['caravan_id'])->value('name');{/php}</span></p>
						<p>营地名称：<span>{php} echo model('Camps')->where('id',$post_order_info['camp_id'])->value('name');{/php}</span></p>
						<p>使用费：<span>{$post_order_info.total_intergral}币</span>&nbsp;&nbsp;&nbsp;&nbsp;押金：<span>￥{$post_order_info.deposit}元</span></p>
						{volist name='contacts' id='vo'}
						<p>联系人：<span>{$vo.name}</span>&nbsp;&nbsp;&nbsp;&nbsp;手机号码：<span>{$vo.phone}</span>&nbsp;&nbsp;&nbsp;&nbsp;邮箱：<span>{$vo.email}</span></p>
						{/volist}
					</div>
					<script type="text/javascript">
						function getLocalTime(t) {
							h=Math.floor(t/60/60%24);
						    m=Math.floor(t/60%60);
						    s=Math.floor(t%60);
							return h+'小时'+m+'分'+s+'秒';
						}
						$('#countDown').each(function(){
							var btn = $(this);
							var count = btn.text();
					    	var time = parseInt(count);
						    var resend = setInterval(function(){
						        count--;
						        if (count >=-1){
						            btn.html(getLocalTime(time--));
						        }else {
						        	btn.html(0);
						        	$('#countDown').each(function(){
										if($(this).text()<=0){
							            	var num = $(this).parent('p').siblings('input[name=id]').val();
							            	var wid = $(this).parent('p').siblings('input[name=wid]').val();
							            	$.ajax({
							            		type:"post",
							            		url:"/wishorders/cancelorder",
							            		data:{num:num,wid:wid},
							            	});
							            }
									})
						            clearInterval(resend);
						        }
						    }, 1000);
						})
					</script>
					<!-- 展开订单详情start -->
					<script type="text/javascript">
						$(function(){
							$(".paychoseorderinfo > div").hide();
							$(".paychoseorderinfo span#paychoseorderinfobtn").click(function(){
								$(".paychoseorderinfo > div").toggle();
							})
						})
					</script>
					<!-- 展开订单详情end -->
				</div>
				<div class="paychoseinfo">
					<h2>请选择支付平台</h2>
					<ul>
						<li><a href='javaScript:;'><img src="/front/img/zhifubao.jpg"></a></li>
						<li><a href="/order/payorder?order_id={$post_order_info['number']}"><img src="/front/img/weixin.jpg"></a></li>
					</ul>
					<div class="cb"></div>
					<br>
					<h2>非大陆地区银行信用卡<span>（支付网关将收取4%手续费，18元，手续费不开具发票）</span></h2>
					<ul>
						<li><a href="##"><img src="/front/img/visa.jpg"></a></li>
					</ul>
					<div class="cb"></div>
				</div>
			</div>
		</div>
		<!--支付选择结束-->
		<!--公共底部开始-->

